﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MovingRobot
{
    public class Application
    {
        public void Start()
        {
            Console.CursorVisible = false;
            Field field = new Field(50, 20);
            field.Rend();
            Random rnd = new Random();
            Robot johnny = new Robot(rnd.Next(1,(field.Wight-1)),rnd.Next(1,(field.Height-1)), field);
            
            while (true)
            {
                johnny.Rend();
                johnny.Move(Console.ReadKey());
            }
            
        }
    }
}
